﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SetListManager.Models.Song>>" %>
<%@ Import Namespace="MvcContrib.UI.Grid" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Song Groups</h1>
    <% // NOTE: USES MvcContrib module.  Need to install "MvcContrib" using NuGet to be able to use
       // this.
    %>

<%= Html.Grid(Model).Columns(column => {
    column.For(item => item.Group.Name).Named("Group Name");
    column.For(item => item.Title).Named("Song Title");
    column.For(item => item.Group.GroupID).Named("Group ID");
    column.For(item => item.GroupOrder);
})%>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

